<template>
    <div class="cesiumMarker">
        
    </div>
</template>
<script>
export default {
    name:"CesiumMarker",
    props: {
        StationEPAdatas:Array
    },
    
    mounted(){
        console.log(this.StationEPAdatas)
    },
    methods: {
        tanchu(){
            for(var i=0;i<this.StationEPAdatas.length;i++){
                    markerArr1[i]={};
                    markerArr1[i].x=data.StationEPAdatas[i].Lon;
                    markerArr1[i].y=data.StationEPAdatas[i].Lat;
                    markerArr1[i].markerImg='./mark.png';
                    markerArr1[i].name=data.StationEPAdatas[i].StationName;
                    markerArr1[i].name1=data.StationEPAdatas[i].City;
                    markerArr1[i].level=data.StationEPAdatas[i].level;
                    markerArr1[i].negative_K04=parseInt(data.StationEPAdatas[i].negative_K04);
                    markerArr1[i].MaxNegative_K04=data.StationEPAdatas[i].MaxNegative_K04;
                    markerArr1[i].markerId = i;
                    markerArr1[i].QXDJ=data.StationEPAdatas[i].QXDJ;
                    switch(data.StationEPAdatas[i].Level){
                        case 1:{
                            markerArr1[i].num = 3;
                            markerArr1[i].Level='I';
                            markerArr1[i].markerColor='#0CDE4E';gradient
                            markerArr1[i].canvas = '/siji.gif'
                            //markerArr[i].Color0=markerArr[i].markerColor.colorRgba0();
                            markerArr1[i].Color100=markerArr1[i].markerColor.colorRgba();
                            break;
                        }
                        case 2:{
                            markerArr1[i].num = 5;
                            markerArr1[i].Level='II';
                            markerArr1[i].markerColor='#32F3A9';
                            markerArr1[i].canvas = '/sanji.gif'
                            //markerArr[i].Color0=markerArr[i].markerColor.colorRgba0();
                            markerArr1[i].Color100=markerArr1[i].markerColor.colorRgba();
                            break;
                        }
                        case 3:{
                            markerArr1[i].num = 7;
                            markerArr1[i].Level='III';
                            markerArr1[i].markerColor='#63B5E6';
                            markerArr1[i].canvas = '/erji.gif'
                            //markerArr[i].Color0=markerArr[i].markerColor.colorRgba0();
                            markerArr1[i].Color100=markerArr1[i].markerColor.colorRgba();
                            break;
                        }
                        case 4:{
                            markerArr1[i].num = 9;
                            markerArr1[i].Level='IV';
                            markerArr1[i].markerColor='#6AA6C9';
                            markerArr1[i].canvas = '/yiji.gif'
                            //markerArr[i].Color0=markerArr[i].markerColor.colorRgba0();
                            markerArr1[i].Color100=markerArr1[i].markerColor.colorRgba();
                            break;
                        }
                        case 5:{
                            markerArr1[i].num = 11;
                            markerArr1[i].Level='VI';
                            markerArr1[i].markerColor='#A1A1A1';
                            markerArr1[i].canvas = '/1.gif'
                            //markerArr[i].Color0=markerArr[i].markerColor.colorRgba0();
                            markerArr1[i].Color100=markerArr1[i].markerColor.colorRgba();
                            break;
                        }
                    }
            }
        }
    }
}
</script>
<style scoped lang="stylus"> 
    .cesiumMarker
        position:relative
        z-index:2
        
</style>


